﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BLL;
using ORMapping;

namespace CardMoudle
{
    public partial class CardHistoryForm : Form
    {
        public CardHistoryForm(Card cd)
        {
            InitializeComponent();
            HYDataGridView.Helper.InitDataGridViewColumn(String.Format("{0}_{1}", this.Name, this.dgvCardHistory.Name), ref dgvCardHistory);
            dgvCardHistory.AutoGenerateColumns = false;
            this.Text = String.Format("{0}攀岩卡的更新历史", cd.CardNO);
            CardHistoryBLL chb = new CardHistoryBLL();
            dgvCardHistory.DataSource = chb.GetCardHistoryDataTable(cd.CardID);
        }
    }
}
